<div class="quans view">
<h2><?php  __('Quan');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $quan['Quan']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tinh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($quan['Tinh']['id'], array('controller' => 'tinhs', 'action' => 'view', $quan['Tinh']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Quanhuyen'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $quan['Quan']['quanhuyen']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Sửa', true), array('action' => 'edit', $quan['Quan']['id'])); ?> </li>
		<li><?php echo $html->link(__('Xóa', true), array('action' => 'delete', $quan['Quan']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quan['Quan']['id'])); ?> </li>
		<li><?php echo $html->link(__('Danh mục quận/huyện', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm quận/huyện', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh mục tỉnh/tp', true), array('controller' => 'tinhs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm tỉnh/tp', true), array('controller' => 'tinhs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh mục phường/xã', true), array('controller' => 'phuongs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm phường/xã', true), array('controller' => 'phuongs', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Phuongs');?></h3>
	<?php if (!empty($quan['Phuong'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $quan['Phuong']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Quan Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $quan['Phuong']['quan_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phuongxa');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $quan['Phuong']['phuongxa'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('Sửa thông tin phường/xã', true), array('controller' => 'phuongs', 'action' => 'edit', $quan['Phuong']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Phuongs');?></h3>
	<?php if (!empty($quan['Phuong'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Quan Id'); ?></th>
		<th><?php __('Phuongxa'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($quan['Phuong'] as $phuong):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phuong['id'];?></td>
			<td><?php echo $phuong['quan_id'];?></td>
			<td><?php echo $phuong['phuongxa'];?></td>
			<td class="actions">
				<?php echo $html->link(__('Hiển thị', true), array('controller' => 'phuongs', 'action' => 'view', $phuong['id'])); ?>
				<?php echo $html->link(__('Sửa', true), array('controller' => 'phuongs', 'action' => 'edit', $phuong['id'])); ?>
				<?php echo $html->link(__('Xóa', true), array('controller' => 'phuongs', 'action' => 'delete', $phuong['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $phuong['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Thêm phường/xã', true), array('controller' => 'phuongs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
